{% load staticfiles %}
<!DOCTYPE html>
<html lang="zh-hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改密码</title>
    <link rel="stylesheet" href="{% static "css\bootstrap.min.css" %}">
    <link rel="stylesheet" href="{% static "css\navbar.css" %}">
    <link rel="stylesheet" href="{% static "css\form.css" %}">
    <script type="text/javascript" src="{% static "js\jquery-3.4.1.min.js" %}"></script>
    <script type="text/javascript" src="{% static "js\bootstrap.min.js" %}"></script>
</head>
<body>
<nav class="navbar navbar-inverse ">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{% url "main:home" %}"><img src="{% static "img\logo.jpg" %}" alt="失物招领"></a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                </div>
                <button type="submit" class="btn btn-default">搜索 <span class="glyphicon glyphicon-search"
                                                                       aria-hidden="true"></span></button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="{% url "main:found" %}">失物</a></li>
                <li><a href="{% url "main:lost" %}">寻物</a></li>
                <li><a href="#">已找到</a></li>
                <li class="dropdown">
                    {% if user.is_authenticated %}
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-picture"
                                                                                                                                                  aria-hidden="true"></span> {{ user }}
                            <span class="caret"></span></a>
                        <ul class="dropdown-menu">

                            <li><a href="{% url "main:user_center" %}"><span class="glyphicon glyphicon-new-window" aria-hidden="true"> </span> 个人中心</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="{% url "main:log_out" %}"><span class="glyphicon glyphicon-log-out" aria-hidden="true"> </span> 登出</a>
                            </li>
                        </ul>
                    {% else %}
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-picture"
                                                                                                                                                  aria-hidden="true"></span> 未登录
                            <span class="caret"></span></a>
                        <ul class="dropdown-menu">

                            <li><a href="{% url "main:log_in" %}"><span class="glyphicon glyphicon-log-in" aria-hidden="true"> </span> 登录</a></li>
                            <li><a href="{% url "main:register" %}"><span class="glyphicon glyphicon-new-window" aria-hidden="true"> </span> 注册</a></li>

                            </li>
                        </ul>
                    {% endif %}

                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="container-form container">
    <h2>修改密码</h2>
      <form action="" method="POST">
          {% csrf_token %}
          <div class="input-group mt-5 mb-5">
            <div class="input-group-addon">旧密码</div>
            <input type="password" class="form-control" placeholder="请输入您的旧密码" name="old_password" autofocus required id="id_old_password" >
          </div>
          <br>
          <div class="input-group mb-5">
            <div class="input-group-addon">新密码</div>
            <input class="form-control" placeholder="请输入您的新密码" type="password" name="new_password1" required id="id_new_password1">
          </div>
          <br>
          <div class="input-group mb-5">
            <div class="input-group-addon">新密码确认</div>
            <input class="form-control" placeholder="确认您的新密码" type="password" name="new_password2" required id="id_new_password2">
          </div>
          <br>
         <button class="btn btn-block" type="submit">提交</button>
      </form>
  </div>
</body>
</html>
